package com.example.test.dao;

import com.example.test.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IUserDao {
    User login(@Param("username") String username, @Param("password") String password);
    User getUser(@Param("username") String username);
    List<User> list();
    void add(@Param("username") String username, @Param("password") String password, @Param("screen") int screen);
    void del(@Param("id") int id);
    void update_pass(@Param("id") int id, @Param("password") String password);
    void update_screen(@Param("id") int id, @Param("screen") int screen);
}
